home *** CD-ROM | disk | FTP | other *** search
/ Platinum Plus: Utility Power Pak / Platinum Plus Utility Power Pak - CD Explorer.ISO / programs / zipstud / setup / zip.in_ / ZIP.INC
Encoding:
Text File  |  1994-11-21  |  3.2 KB  |  67 lines

  1. const
  2. (* Errors constants *)
  3.   ZERROR_OK              = 0;    { No error }
  4.   ZERROR_WARNING        = 1;     { Just a warning (not an error) }
  5.   ZERROR_DESTFILE        = 2;  { Destfile ( *.ZIP ) error }
  6.   ZERROR_INTERNAL     = 3;  { Internal error }
  7.   ZERROR_FORMAT          = 4;  { Not a Zip file }
  8.   ZERROR_NOMEM          = 5;  { Not enough memory }
  9.   ZERROR_NOFILE          = 6;  { Nothing to do ( can be just a warning ) }
  10.   ZERROR_NODLL          = 7;  { Can' t find required DLLs }
  11.   ZERROR_COMMENT        = 8;  { Comment missing or NULL }
  12.  
  13. (* Overwrite mode *)
  14.   OVERWRITE_ALWAYS    = 0;  { Always overwrite ( always zip files ) (default) }
  15.   OVERWRITE_NEVER        = 1;  { Never overwrite }
  16.   OVERWRITE_PROMPT    = 2;  { Ask the user }
  17.   OVERWRITE_UPDATE    = 3;  { Overwrite if external file is newer }
  18.  
  19.  
  20. (* Language mode ( for the replace dialog box ) *)
  21.   LANGUAGE_FRENCH    = 0;    { French mode }
  22.   LANGUAGE_ENGLISH   = 1;    { US Mode ( default ) }
  23.   LANGUAGE_GERMAN    = 2;  { German mode ** NEW! ** }
  24.   LANGUAGE_NONE      = 3;  { No language (used with ZN_REPLACE) ** NEW! ** }
  25.  
  26. (* More easy to use with AddFileToZip *)
  27.   STOREPATH_NO           = FALSE; { Don' t store paths }
  28.   STOREPATH_YES           = TRUE;  { Store paths }
  29.   RECURSE_NO             = FALSE; { Don' t recurse sub dirs }
  30.   RECURSE_YES             = TRUE;  { Recurse sub dirs }
  31.  
  32.  
  33. (* Notification messages from AddFileToZip *)
  34.   ZN_ZIPPING             = WM_USER + 46;  { Zipping a file, WP = compressed size in K, LP = current file name }
  35.   ZN_FILEZIPPED      = WM_USER + 45;  { File is zipped, WP = compress rate, LP = file name }
  36.   ZN_WRITING             = WM_USER + 48;  { Replace the Zip file, LP = zip file name }
  37.   ZN_DELETING           = WM_USER + 47;  { Delete a file , LP = current file name }
  38.   ZN_REPARING             = WM_USER + 49;  { Repare a Zip file, WP = (int)state }
  39.                                       {   Step =  1 : Read / Write ,  LP = current file name }
  40.                                       {   Step = 3 : Checking zip file, LP = zip file name   }
  41.   ZN_COMPUTE             = WM_USER + 52;  { Before zip read, WP = zip files ( over 500, computing can be very long ) }
  42.   ZN_REPLACE              = WM_USER + 53;  { The replace dialog box is opened ** NEW! ** }
  43.  
  44.  
  45. (* New for version 2.0 *)
  46.  
  47. (* Storage modes *)
  48.   ZMODE_NORMAL       = 0; { balance of speed and compression }
  49.   ZMODE_FAST         = 1; { least compression, fastest speed }
  50.   ZMODE_SLOW         = 2; { best compression, slowest speed  }
  51.   ZMODE_STORE        = 3; { no compression                   }
  52.  
  53. (* ZipSplit function results.  The exact definitions of these are unavailable to me at this time, *)
  54. (* but they seem fairly obvious.                                                                  *)
  55.   SPLIT_OK           = 0;
  56.   SPLIT_NOFILE       = 1;
  57.   SPLIT_NOMEM        = 2;
  58.   SPLIT_IOERROR      = 3;
  59.   SPLIT_TOOBIG       = 4; { more than 10 parts }
  60.   SPLIT_ACCESSDENIED = 5;
  61.   SPLIT_USERABORT    = 6;
  62.   SPLIT_FILETOOSMALL = 7; { the ZIP file was small enough to not reqire splitting }
  63.  
  64. (* Notification messages from ZipSplit *)
  65.   ZN_SPLITTING       = WM_USER + 61; { Splitting in progress, wp = total size (kb), lp = piece name        }
  66.   ZN_SPLITTED        = WM_USER + 62; { A zip part is done, wp = part number,  lp = total size ( in bytes ) }
  67.